<div id="addFeeConfigModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">
                    <span>
                        <vc:i18n name="添加" namespace="addFeeConfig"></vc:i18n>
                    </span>
                </h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="费用类型" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.feeTypeCd">
                                        <option selected disabled value="">{{vc.i18n('必填，请选择费用类型','addFeeConfig')}}
                                        </option>
                                        <option v-for="(item,index) in addFeeConfigInfo.feeTypeCds" :key="index"
                                            v-bind:value="item.statusCd">
                                            {{item.name}}
                                        </option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="收费项目" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <input v-model="addFeeConfigInfo.feeName" type="text"
                                        :placeholder="vc.i18n('必填，请填写收费项目','addFeeConfig')" class="form-control">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="费用标识" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.feeFlag">
                                        <option selected disabled value="">{{vc.i18n('必填，请选择费用标识','addFeeConfig')}}
                                        </option>
                                        <option v-for="(item,index) in addFeeConfigInfo.feeFlags" :key="index"
                                            :value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="付费类型" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.paymentCd">
                                        <option selected disabled value="">{{vc.i18n('必填，请选择付费类型','addFeeConfig')}}
                                        </option>
                                        <option v-for="(item,index) in addFeeConfigInfo.paymentCds" :key="index"
                                            :value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row" v-if="addFeeConfigInfo.feeFlag !='2006012'">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="缴费周期" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <input v-model="addFeeConfigInfo.paymentCycle" type="text"
                                        :placeholder="vc.i18n('必填，请填写缴费周期 单位为月','addFeeConfig')" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="计费起始时间" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <input v-model="addFeeConfigInfo.startTime" type="text"
                                        :placeholder="vc.i18n('必填，请填写计费起始时间','addFeeConfig')"
                                        class="form-control addFeeConfigStartTime" name="startTime">
                                </div>
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="计费终止时间" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <input v-model="addFeeConfigInfo.endTime" type="text"
                                        :placeholder="vc.i18n('必填，请填写计费终止时间','addFeeConfig')"
                                        class="form-control addFeeConfigEndTime" name="endTime">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="催缴类型" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.billType">
                                        <option selected disabled value="">{{vc.i18n('必填，请选择催缴类型','addFeeConfig')}}
                                        </option>
                                        <option v-for="(item,index) in addFeeConfigInfo.billTypes" :key="index"
                                            :value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="账户抵扣" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.deductFrom">
                                        <option value="Y">{{vc.i18n('是','addFeeConfig')}}</option>
                                        <option value="N">{{vc.i18n('否','addFeeConfig')}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="手机缴费" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.payOnline">
                                        <option value="Y">{{vc.i18n('是')}}</option>
                                        <option value="N">{{vc.i18n('否')}}</option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="进位方式" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.scale">
                                        <option value="1">{{vc.i18n('四舍五入','addFeeConfig')}}</option>
                                        <option value="3">{{vc.i18n('向上进位','addFeeConfig')}}</option>
                                        <option value="4">{{vc.i18n('向下进位','addFeeConfig')}}</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="保留小数位" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="addFeeConfigInfo.decimalPlace">
                                        <option value="0">{{vc.i18n('取整')}}</option>
                                        <option value="1">{{vc.i18n('1位')}}</option>
                                        <option value="2">{{vc.i18n('2位')}}</option>
                                        <option value="3">{{vc.i18n('3位')}}</option>
                                        <option value="4">{{vc.i18n('4位')}}</option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="单位" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-4">
                                    <input v-model="addFeeConfigInfo.units" type="text"
                                    :placeholder="vc.i18n('必填，请填写单位（如：元）','addFeeConfig')" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="计算公式" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-10">
                                    <select class="custom-select" v-model="addFeeConfigInfo.computingFormula">
                                        <option selected disabled value="">{{vc.i18n('必填，请选择计算公式','addFeeConfig')}}
                                        </option>
                                        <option v-for="(item,index) in addFeeConfigInfo.computingFormulas" :key="index"
                                            v-bind:value="item.statusCd">
                                            {{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row" v-show="addFeeConfigInfo.computingFormula != '2002' 
                                 && addFeeConfigInfo.computingFormula != '7007' 
                                 && addFeeConfigInfo.computingFormula != '8008'
                                 && addFeeConfigInfo.computingFormula != '1101'
                                 && addFeeConfigInfo.computingFormula != '1102'
                                 && addFeeConfigInfo.computingFormula != '4004'
                                 && addFeeConfigInfo.computingFormula != '9009'">
                                <label class="col-sm-2 col-form-label text-right"><span>
                                        <vc:i18n name="计费单价" namespace="addFeeConfig"></vc:i18n>
                                    </span></label>
                                <div class="col-sm-10">
                                    <input v-model="addFeeConfigInfo.squarePrice" type="text"
                                        :placeholder="vc.i18n('必填，请填写计费单价','addFeeConfig')" class="form-control">
                                </div>
                            </div>
                            <div class="form-group row" v-show="addFeeConfigInfo.computingFormula != '7007' 
                                 && addFeeConfigInfo.computingFormula != '8008'
                                 && addFeeConfigInfo.computingFormula != '1101'
                                 && addFeeConfigInfo.computingFormula != '1102'
                                 && addFeeConfigInfo.computingFormula != '4004'
                                 && addFeeConfigInfo.computingFormula != '9009'">
                                <label class="col-sm-2 col-form-label text-right">
                                    {{addFeeConfigInfo.computingFormula == '1001' ?'附加费用':'固定费用'}}
                                </label>
                                <div class="col-sm-10">
                                    <input v-model="addFeeConfigInfo.additionalAmount" type="text"
                                        :placeholder="vc.i18n('必填，请填写附加费用','addFeeConfig')" class="form-control">
                                </div>
                            </div>
                            <div v-show="addFeeConfigInfo.computingFormula == '7007'">
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label text-right"><span>
                                            <vc:i18n name="公式" namespace="addFeeConfig"></vc:i18n>
                                        </span></label>
                                    <div class="col-sm-4">
                                        <textarea v-model="addFeeConfigInfo.computingFormulaText"
                                            :placeholder="vc.i18n('必填，请填写公式','addFeeConfig')"
                                            class="form-control"></textarea>
                                    </div>
                                    <label class="col-sm-2 col-form-label text-right"><span>
                                            <vc:i18n name="说明" namespace="addFeeConfig"></vc:i18n>
                                        </span></label>
                                    <div class="col-sm-4">
                                        <div>C 代表房屋对应小区面积</div>
                                        <div>F 代表房屋对应楼栋面积</div>
                                        <div>U 代表房屋对应单元面积</div>
                                        <div>R 代表房屋面积</div>
                                        <div>X 代表房屋收费系数（房屋管理中配置）</div>
                                        <div>L 代表房屋层数</div>
                                        <div>
                                            举例：电梯使用费 (层数-5)*每层单价+基础费用
                                        </div>
                                        <div>
                                            公式：(L-5)*5 + 10
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group row">
                            </div>
                        </div>
                        <div class="ibox-content">
                            <button class="btn btn-primary float-right" type="button" v-on:click="saveFeeConfigInfo()">
                                <i class="fa fa-check"></i>&nbsp;保存
                            </button>
                            <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                data-dismiss="modal">
                                <i class="fa fa-times"></i>&nbsp;取消
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>